package com.avyss.flyingpoints;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;

public class MainActivity extends Activity {

	private CustomSurfaceView flyingView;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		
		flyingView = (CustomSurfaceView) findViewById(R.id.flying);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// currently no settings available, so nothing to do here 
		//getMenuInflater().inflate(R.menu.main, menu);
		
		return true;
	}
	
	@Override
    public void onPause() {
        super.onPause();
        
		flyingView.pauseMovements();
    }
    
	@Override
    public void onResume() {
        super.onResume();
        
		flyingView.resumeMovements();
    }
}
